package com.jizhi.springboot.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jizhi.springboot.dao.UserDao;
import com.jizhi.springboot.service.UserService;
import com.jizhi.springboot.vo.UserVo;

@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;

	@Override
	public int insert(UserVo user) {
		userDao.insert(user);
		return user.getId();
	}

}
